package controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
/**
 * @author guiguketang
 * @date 2020/11/10 17:49
 */
public class HelloController implements Controller{
    @Override
    public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception {
        ModelAndView mv = new ModelAndView("index.jsp");
        mv.addObject("message", "Hello Spring MVC,I am GuiGuKeTang!");
        return mv;
    }
}